package com.topit.show.wxapi.vo;

import java.io.Serializable;
import java.util.Arrays;

public class Button implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -4896030923898307280L;

	//菜单标题，不超过16个字节，子菜单不超过40个字节
    private String name;

    //菜单的响应动作类型
    private String type;

    //菜单KEY值，用于消息接口推送，不超过128字节
    private String key;

    //网页链接，用户点击菜单可打开链接，不超过256字节
    private String url;

    //二级菜单数组，个数应为1~5个
    private Button[] sub_button;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Button[] getSub_button() {
        return sub_button;
    }

    public void setSub_button(Button[] sub_button) {
        this.sub_button = sub_button;
    }

    @Override
    public String toString() {
        return "button:[name=" + name + ", type=" + type +
                ", key=" + key + ", url=" + url +
                ", sub_button=" + Arrays.toString(sub_button) + "]";
    }
}
